package com.neusoft.news.dao;

import java.sql.SQLException;
import java.util.List;

import com.neusoft.news.bean.User;

public interface UserDao {

	/**
	 * 
	 * @param user
	 * @return
	 * @throws SQLException
	 */
	public User getUser(User user) throws SQLException;
	
	/**
	 * 
	 * @param user
	 * @return
	 * @throws SQLException
	 */
	public boolean updateUser(User user) throws SQLException;
	
	/**
	 * 
	 * @param user
	 * @return
	 * @throws SQLException
	 */
	public boolean changePwd(User user) throws SQLException;
	/**
	 * 
	 * @param user
	 * @return
	 * @throws SQLException
	 */
	public boolean insertUser(User user) throws SQLException;
	/**
	 * 
	 * @return
	 * @throws SQLException
	 */
	public List<User> selectOldUser() throws SQLException;
	/**
	 * 
	 * @param userid
	 * @return
	 * @throws SQLException
	 */
	public boolean removeUser(int userid) throws SQLException;
	/**
	 * 
	 * @return
	 * @throws SQLException
	 */
	public List<User> selectNewUser() throws SQLException;
	/**
	 * 
	 * @param user
	 * @return
	 * @throws SQLException
	 */
	public boolean updateShinsa(User user) throws SQLException; 
}
